package com.cs.pk.actions;

import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.IWorkbenchWindowActionDelegate;

import com.cs.pk.form.CodeReviewForm;

public class CodeReview implements IWorkbenchWindowActionDelegate {

	private IWorkbenchWindow parent = null;
	
	public void dispose() {
		
		parent = null;
	}

	public void init(IWorkbenchWindow window) {
        parent = window;        
	}

	public void run(IAction action) {
         CodeReviewForm crf = new CodeReviewForm(parent);
         crf.createForm(action.getImageDescriptor());         
	}

	public void selectionChanged(IAction action, ISelection selection) {
		
	}


}
